package com.zryc.controller;

import com.zryc.service.OrderService;
import com.zryc.shop.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
public class OrderController4 {
    @Autowired
    private OrderService orderService;

    @RequestMapping("/createOrder")
    public Order createOrder(Integer pid,Integer num){
        return orderService.createOrder(pid,num);
    }
}
